home *** CD-ROM | disk | FTP | other *** search
/ 1st Multimedia Mac Shareware / Multimedia Shareware CD-ROM - BetaCorp.iso / Referenceƒ / MacHelp / Part 3 / MacHelp#3 User Preferences / cards.xml < prev    next >
Encoding:
Text File  |  1992-08-13  |  10.4 KB  |  366 lines

  1. card_3608.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3608</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_2231.pbm</bitmap>
  8.     <cantDelete> <true /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2615</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_2548.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>button</type>
  16.         <visible> <true /> </visible>
  17.         <reserved5> 0 </reserved5>
  18.         <reserved4> 0 </reserved4>
  19.         <reserved3> 0 </reserved3>
  20.         <reserved2> 0 </reserved2>
  21.         <reserved1> 0 </reserved1>
  22.         <enabled> <true /> </enabled>
  23.         <rect>
  24.             <left>95</left>
  25.             <top>145</top>
  26.             <right>223</right>
  27.             <bottom>166</bottom>
  28.         </rect>
  29.         <style>radiobutton</style>
  30.         <showName> <true /> </showName>
  31.         <highlight> <true /> </highlight>
  32.         <autoHighlight> <true /> </autoHighlight>
  33.         <sharedHighlight> <true /> </sharedHighlight>
  34.         <family>0</family>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Chicago</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <name>Browsing</name>
  42.         <script>on mouseUp
  43. setUserLevel 1
  44. end mouseUp
  45. </script>
  46.     </part>
  47.     <part>
  48.         <id>2</id>
  49.         <type>button</type>
  50.         <visible> <true /> </visible>
  51.         <reserved5> 0 </reserved5>
  52.         <reserved4> 0 </reserved4>
  53.         <reserved3> 0 </reserved3>
  54.         <reserved2> 0 </reserved2>
  55.         <reserved1> 0 </reserved1>
  56.         <enabled> <true /> </enabled>
  57.         <rect>
  58.             <left>95</left>
  59.             <top>187</top>
  60.             <right>223</right>
  61.             <bottom>208</bottom>
  62.         </rect>
  63.         <style>radiobutton</style>
  64.         <showName> <true /> </showName>
  65.         <highlight> <false /> </highlight>
  66.         <autoHighlight> <true /> </autoHighlight>
  67.         <sharedHighlight> <true /> </sharedHighlight>
  68.         <family>0</family>
  69.         <titleWidth>0</titleWidth>
  70.         <icon>0</icon>
  71.         <textAlign>center</textAlign>
  72.         <font>Chicago</font>
  73.         <textSize>12</textSize>
  74.         <textStyle>plain</textStyle>
  75.         <name>Painting</name>
  76.         <script>on mouseUp
  77. setUserLevel 3
  78. end mouseUp
  79. </script>
  80.     </part>
  81.     <part>
  82.         <id>3</id>
  83.         <type>button</type>
  84.         <visible> <true /> </visible>
  85.         <reserved5> 0 </reserved5>
  86.         <reserved4> 0 </reserved4>
  87.         <reserved3> 0 </reserved3>
  88.         <reserved2> 0 </reserved2>
  89.         <reserved1> 0 </reserved1>
  90.         <enabled> <true /> </enabled>
  91.         <rect>
  92.             <left>95</left>
  93.             <top>208</top>
  94.             <right>223</right>
  95.             <bottom>229</bottom>
  96.         </rect>
  97.         <style>radiobutton</style>
  98.         <showName> <true /> </showName>
  99.         <highlight> <false /> </highlight>
  100.         <autoHighlight> <true /> </autoHighlight>
  101.         <sharedHighlight> <true /> </sharedHighlight>
  102.         <family>0</family>
  103.         <titleWidth>0</titleWidth>
  104.         <icon>0</icon>
  105.         <textAlign>center</textAlign>
  106.         <font>Chicago</font>
  107.         <textSize>12</textSize>
  108.         <textStyle>plain</textStyle>
  109.         <name>Authoring</name>
  110.         <script>on mouseUp
  111. setUserLevel 4
  112. end mouseUp
  113. </script>
  114.     </part>
  115.     <part>
  116.         <id>4</id>
  117.         <type>button</type>
  118.         <visible> <true /> </visible>
  119.         <reserved5> 0 </reserved5>
  120.         <reserved4> 0 </reserved4>
  121.         <reserved3> 0 </reserved3>
  122.         <reserved2> 0 </reserved2>
  123.         <reserved1> 0 </reserved1>
  124.         <enabled> <true /> </enabled>
  125.         <rect>
  126.             <left>95</left>
  127.             <top>229</top>
  128.             <right>223</right>
  129.             <bottom>250</bottom>
  130.         </rect>
  131.         <style>radiobutton</style>
  132.         <showName> <true /> </showName>
  133.         <highlight> <false /> </highlight>
  134.         <autoHighlight> <true /> </autoHighlight>
  135.         <sharedHighlight> <true /> </sharedHighlight>
  136.         <family>0</family>
  137.         <titleWidth>0</titleWidth>
  138.         <icon>0</icon>
  139.         <textAlign>center</textAlign>
  140.         <font>Chicago</font>
  141.         <textSize>12</textSize>
  142.         <textStyle>plain</textStyle>
  143.         <name>Scripting</name>
  144.         <script>on mouseUp
  145. setUserLevel 5
  146. end mouseUp
  147. </script>
  148.     </part>
  149.     <part>
  150.         <id>5</id>
  151.         <type>button</type>
  152.         <visible> <false /> </visible>
  153.         <reserved5> 0 </reserved5>
  154.         <reserved4> 0 </reserved4>
  155.         <reserved3> 0 </reserved3>
  156.         <reserved2> 0 </reserved2>
  157.         <reserved1> 0 </reserved1>
  158.         <enabled> <true /> </enabled>
  159.         <rect>
  160.             <left>211</left>
  161.             <top>187</top>
  162.             <right>314</right>
  163.             <bottom>208</bottom>
  164.         </rect>
  165.         <style>checkbox</style>
  166.         <showName> <true /> </showName>
  167.         <highlight> <false /> </highlight>
  168.         <autoHighlight> <true /> </autoHighlight>
  169.         <sharedHighlight> <true /> </sharedHighlight>
  170.         <family>0</family>
  171.         <titleWidth>0</titleWidth>
  172.         <icon>0</icon>
  173.         <textAlign>center</textAlign>
  174.         <font>Chicago</font>
  175.         <textSize>12</textSize>
  176.         <textStyle>plain</textStyle>
  177.         <name>Power Keys</name>
  178.         <script>on mouseUp
  179. set powerKeys to the hilite of button "Power Keys"
  180. end mouseUp
  181. </script>
  182.     </part>
  183.     <part>
  184.         <id>7</id>
  185.         <type>field</type>
  186.         <visible> <true /> </visible>
  187.         <dontWrap> <false /> </dontWrap>
  188.         <dontSearch> <false /> </dontSearch>
  189.         <sharedText> <false /> </sharedText>
  190.         <fixedLineHeight> <true /> </fixedLineHeight>
  191.         <autoTab> <false /> </autoTab>
  192.         <lockText> <false /> </lockText>
  193.         <rect>
  194.             <left>168</left>
  195.             <top>91</top>
  196.             <right>392</right>
  197.             <bottom>111</bottom>
  198.         </rect>
  199.         <style>transparent</style>
  200.         <autoSelect> <false /> </autoSelect>
  201.         <showLines> <false /> </showLines>
  202.         <wideMargins> <false /> </wideMargins>
  203.         <multipleLines> <false /> </multipleLines>
  204.         <reservedFamily> 0 </reservedFamily>
  205.         <titleWidth>0</titleWidth>
  206.         <icon>0</icon>
  207.         <textAlign>left</textAlign>
  208.         <font>Geneva</font>
  209.         <textSize>14</textSize>
  210.         <textStyle>plain</textStyle>
  211.         <textHeight>18</textHeight>
  212.         <name>User Name</name>
  213.         <script>on closeField
  214. global userName
  215. put card field "User Name" into userName
  216. end closeField
  217. </script>
  218.     </part>
  219.     <part>
  220.         <id>8</id>
  221.         <type>button</type>
  222.         <visible> <true /> </visible>
  223.         <reserved5> 0 </reserved5>
  224.         <reserved4> 0 </reserved4>
  225.         <reserved3> 0 </reserved3>
  226.         <reserved2> 0 </reserved2>
  227.         <reserved1> 0 </reserved1>
  228.         <enabled> <true /> </enabled>
  229.         <rect>
  230.             <left>95</left>
  231.             <top>166</top>
  232.             <right>223</right>
  233.             <bottom>187</bottom>
  234.         </rect>
  235.         <style>radiobutton</style>
  236.         <showName> <true /> </showName>
  237.         <highlight> <false /> </highlight>
  238.         <autoHighlight> <true /> </autoHighlight>
  239.         <sharedHighlight> <true /> </sharedHighlight>
  240.         <family>0</family>
  241.         <titleWidth>0</titleWidth>
  242.         <icon>0</icon>
  243.         <textAlign>center</textAlign>
  244.         <font>Chicago</font>
  245.         <textSize>12</textSize>
  246.         <textStyle>plain</textStyle>
  247.         <name>Typing</name>
  248.         <script>on mouseUp
  249. setUserLevel 2
  250. end mouseUp
  251. </script>
  252.     </part>
  253.     <part>
  254.         <id>9</id>
  255.         <type>field</type>
  256.         <visible> <false /> </visible>
  257.         <dontWrap> <false /> </dontWrap>
  258.         <dontSearch> <false /> </dontSearch>
  259.         <sharedText> <false /> </sharedText>
  260.         <fixedLineHeight> <true /> </fixedLineHeight>
  261.         <autoTab> <false /> </autoTab>
  262.         <lockText> <true /> </lockText>
  263.         <rect>
  264.             <left>173</left>
  265.             <top>125</top>
  266.             <right>198</right>
  267.             <bottom>144</bottom>
  268.         </rect>
  269.         <style>transparent</style>
  270.         <autoSelect> <false /> </autoSelect>
  271.         <showLines> <false /> </showLines>
  272.         <wideMargins> <false /> </wideMargins>
  273.         <multipleLines> <false /> </multipleLines>
  274.         <reservedFamily> 0 </reservedFamily>
  275.         <titleWidth>0</titleWidth>
  276.         <icon>0</icon>
  277.         <textAlign>left</textAlign>
  278.         <font>Geneva</font>
  279.         <textSize>12</textSize>
  280.         <textStyle>plain</textStyle>
  281.         <textHeight>16</textHeight>
  282.         <name>User Level</name>
  283.         <script></script>
  284.     </part>
  285.     <part>
  286.         <id>13</id>
  287.         <type>button</type>
  288.         <visible> <false /> </visible>
  289.         <reserved5> 0 </reserved5>
  290.         <reserved4> 0 </reserved4>
  291.         <reserved3> 0 </reserved3>
  292.         <reserved2> 0 </reserved2>
  293.         <reserved1> 0 </reserved1>
  294.         <enabled> <true /> </enabled>
  295.         <rect>
  296.             <left>212</left>
  297.             <top>229</top>
  298.             <right>315</right>
  299.             <bottom>250</bottom>
  300.         </rect>
  301.         <style>checkbox</style>
  302.         <showName> <true /> </showName>
  303.         <highlight> <false /> </highlight>
  304.         <autoHighlight> <true /> </autoHighlight>
  305.         <sharedHighlight> <true /> </sharedHighlight>
  306.         <family>0</family>
  307.         <titleWidth>0</titleWidth>
  308.         <icon>0</icon>
  309.         <textAlign>center</textAlign>
  310.         <font>Chicago</font>
  311.         <textSize>12</textSize>
  312.         <textStyle>plain</textStyle>
  313.         <name>Blind Typing</name>
  314.         <script>on mouseUp
  315. set blindTyping to the hilite of button "Blind Typing"
  316. end mouseUp
  317. </script>
  318.     </part>
  319.     <part>
  320.         <id>14</id>
  321.         <type>button</type>
  322.         <visible> <true /> </visible>
  323.         <reserved5> 0 </reserved5>
  324.         <reserved4> 0 </reserved4>
  325.         <reserved3> 0 </reserved3>
  326.         <reserved2> 0 </reserved2>
  327.         <reserved1> 0 </reserved1>
  328.         <enabled> <true /> </enabled>
  329.         <rect>
  330.             <left>289</left>
  331.             <top>145</top>
  332.             <right>417</right>
  333.             <bottom>166</bottom>
  334.         </rect>
  335.         <style>radiobutton</style>
  336.         <showName> <true /> </showName>
  337.         <highlight> <false /> </highlight>
  338.         <autoHighlight> <true /> </autoHighlight>
  339.         <sharedHighlight> <true /> </sharedHighlight>
  340.         <family>0</family>
  341.         <titleWidth>0</titleWidth>
  342.         <icon>0</icon>
  343.         <textAlign>center</textAlign>
  344.         <font>Chicago</font>
  345.         <textSize>12</textSize>
  346.         <textStyle>plain</textStyle>
  347.         <name>Show Menubar</name>
  348.         <script>on mouseUp
  349. show menubar
  350. end mouseUp
  351. </script>
  352.     </part>
  353.     <part>
  354.         <id>15</id>
  355.         <type>button</type>
  356.         <visible> <true /> </visible>
  357.         <reserved5> 0 </reserved5>
  358.         <reserved4> 0 </reserved4>
  359.         <reserved3> 0 </reserved3>
  360.         <reserved2> 0 </reserved2>
  361.         <reserved1> 0 </reserved1>
  362.         <enabled> <true /> </enabled>
  363.         <rect>
  364.             <left>393</left>
  365.             <top>283</top>
  366.             <right>491</right>
  367.             <bottom>320</bottom>
  368.         </rect>
  369.         <style>transparent</style>
  370.         <showName> <true /> </showName>
  371.         <highlight> <false /> </highlight>
  372.         <autoHighlight> <false /> </autoHighlight>
  373.         <sharedHighlight> <true /> </sharedHighlight>
  374.         <family>0</family>
  375.         <titleWidth>0</titleWidth>
  376.         <icon>0</icon>
  377.         <textAlign>center</textAlign>
  378.         <font>Chicago</font>
  379.         <textSize>12</textSize>
  380.         <textStyle>plain</textStyle>
  381.         <name></name>
  382.         <script>on mouseUp
  383. go to card id 2943 of stack "MacHelp#3 Home"
  384. end mouseUp
  385.  
  386. </script>
  387.     </part>
  388.     <content>
  389.         <layer>card</layer>
  390.         <id>9</id>
  391.         <text>1</text>
  392.     </content>
  393.     <name>User Preferences</name>
  394.     <script>on openCard
  395. setUserLevel the userLevel
  396. if card field "User Name" is empty
  397. then click at the loc of card field "User Name"
  398. end openCard
  399.  
  400. on setUserLevel whatLevel
  401. set userLevel to whatLevel
  402. if the userLevel is whatLevel then
  403. put the userLevel into card field "User Level"
  404. set hilite of button "Browsing" to the userLevel = 1
  405. set hilite of button "Typing" to the userLevel = 2
  406. set hilite of button "Painting" to the userLevel = 3
  407. set hilite of button "Authoring" to the userLevel = 4
  408. set hilite of button "Scripting" to the userLevel = 5
  409. set visible of button "Power Keys" to the userLevel >= 3
  410. set visible of button "Blind Typing" to the userLevel = 5
  411. set hilite of button "Power Keys" to the powerKeys
  412. set hilite of button "Blind Typing" to the blindTyping
  413. else
  414. set hilite of the target to false
  415. end if
  416. end setUserLevel
  417. </script>
  418. </card>
  419.  
  420.  
  421.